package springboot.bean;

import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Objects;

@Component
public class Data implements Serializable {
    private String orderId;
    private String rgnNO;
    private String reserve1;
    private String reserve2;
    private String reserve3;
    private String reserve4;
    private String reserve5;

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getRgnNO() {
        return rgnNO;
    }

    public void setRgnNO(String rgnNO) {
        this.rgnNO = rgnNO;
    }

    public String getReserve1() {
        return reserve1;
    }

    public void setReserve1(String reserve1) {
        this.reserve1 = reserve1;
    }

    public String getReserve2() {
        return reserve2;
    }

    public void setReserve2(String reserve2) {
        this.reserve2 = reserve2;
    }

    public String getReserve3() {
        return reserve3;
    }

    public void setReserve3(String reserve3) {
        this.reserve3 = reserve3;
    }

    public String getReserve4() {
        return reserve4;
    }

    public void setReserve4(String reserve4) {
        this.reserve4 = reserve4;
    }

    public String getReserve5() {
        return reserve5;
    }

    public void setReserve5(String reserve5) {
        this.reserve5 = reserve5;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Data data = (Data) o;
        return Objects.equals(orderId, data.orderId) &&
                Objects.equals(rgnNO, data.rgnNO) &&
                Objects.equals(reserve1, data.reserve1) &&
                Objects.equals(reserve2, data.reserve2) &&
                Objects.equals(reserve3, data.reserve3) &&
                Objects.equals(reserve4, data.reserve4) &&
                Objects.equals(reserve5, data.reserve5);
    }

    @Override
    public int hashCode() {
        return Objects.hash(orderId, rgnNO, reserve1, reserve2, reserve3, reserve4, reserve5);
    }
}
